package com.yisoo.ubag.iot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yisoo.common.utils.PageUtils;
import com.yisoo.common.utils.R;
import com.yisoo.ubag.iot.entity.BoxRelBagEntity;
import com.yisoo.ubag.iot.vo.AckMqttContentVo;

import java.util.Map;

/**
 * 
 *
 * @author mmciel
 * @email 761998179@qq.com
 * @date 2021-05-01 14:40:42
 */
public interface BoxRelBagService extends IService<BoxRelBagEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Integer boxIsHaveBag(Long devId);

    Long getEntityByBagId(String bagId);

    void updateByAckMqttContentVo(AckMqttContentVo content);

    R lock(String devcode, Long bagId);
}

